package com.huangpeng.designmodel.decorate;

/**
 * @Author huangpeng
 * @Title 抽象装饰类
 * @Package
 * @Date 2020/10/23 12:02
 * @Description 实现了Shape的抽象装饰类
 * @Version 1.0
 */
public abstract class GameRoleDecorator implements GameRole {
    protected GameRole decoratedGameRole;

    public GameRoleDecorator(GameRole decoratedGameRole) {
        this.decoratedGameRole = decoratedGameRole;
    }
    public String person(){
        return decoratedGameRole.person();
    }

    public String monster(){
        return decoratedGameRole.monster();
    }
}
